package com.inspur.his.controller;

import com.inspur.his.pojo.Drugsstorrecord;
import com.inspur.his.service.DrugsstorrecordService;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.io.IOException;

/**
 * @Description:
 * @Date: 2022/12/16 0:41
 */

public class DrugsController {
    @Autowired
    static
    DrugsstorrecordService drugsstorrecordService;

    @Test
    public void Test1() throws IOException {
        Drugsstorrecord drugsstorrecord = new Drugsstorrecord();
        drugsstorrecord.setDRUGSID("1001");
        drugsstorrecord.setSTANDARD("21%");
        drugsstorrecord.setUNIT("g");
        drugsstorrecord.setPRICE(10);
        drugsstorrecord.setNUM(100);
        drugsstorrecord.setSTORAGEDATE("2022-12-21");
        drugsstorrecord.setSUPPLYUNIT("100001");
        drugsstorrecord.setINVOICENO("1000001");

        drugsstorrecordService.drugsstorrecordAdd(drugsstorrecord);
    }

}
